package socketmvc.core.packets.basic.impl;

import socketmvc.core.packets.basic.JsonBasicPacket;
import socketmvc.core.packets.basic.Protocol;

import java.io.Serial;
import java.io.Serializable;

public class JsonGzipPacket extends JsonBasicPacket implements Serializable {

    @Serial
    private static final long serialVersionUID = -9655453456889L;

    protected JsonGzipPacket(){}

    public JsonGzipPacket(JsonTextBody textBody){
        this.textBody = textBody;
    }

    @Override
    public byte protocolVersion() {
        return Protocol.JSON_GZIP_TEXT_CONTENT.getVersion();
    }

    @Override
    public String protocolName() {
        return Protocol.JSON_GZIP_TEXT_CONTENT.getName();
    }

    @Override
    public void setBinBody(byte[] body) {}
}
